package com.wgc.cart;


import com.wgc.config.TokenDecode;
import com.wgc.filter.FeignInterceptor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableDiscoveryClient
public class CartMain {
    public static void main(String[] args) {
        SpringApplication.run(CartMain.class,args);
        System.out.println("购物车启动成功");
    }
    @Bean
    public TokenDecode tokenDecode(){
        return new TokenDecode();
    }
    @Bean
    public FeignInterceptor  feignInterceptor(){  return new FeignInterceptor();}
}

